package tech.aistar.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tech.aistar.entity.Questionpaper;
import tech.aistar.mapper.QuestionpaperMapper;
import tech.aistar.service.IQuestionpaperService;

import java.util.List;

@Service
public class QuestionpaperServiceImpl implements IQuestionpaperService {

    @Autowired
    private QuestionpaperMapper questionpaperMapper;

    @Override
    public List<Questionpaper> findAll() {
        return questionpaperMapper.findAll();
    }

    @Override
    public List<Questionpaper> findById(Long id) {
        return questionpaperMapper.findById(id);
    }

    @Override
    public Long countType(Long paperId, Long queType) {
        return questionpaperMapper.countType(paperId,queType);
    }


}
